<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <link rel="stylesheet" href="../../../lib/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/common.css">
    <link rel="stylesheet" href="../../static/css/record.css">
    <title>设备维护记录</title>
</head>
<body>
<section class="mainbody">
    <!--筛选条件-->
    <div class="layui-collapse">
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">筛选</h2>
            <div class="layui-colla-content layui-show">
                <div class="parameter">
                    <form action="#" class="layui-form layui-form-pane layui-clear" lay-filter="parameter">
                        <div class="layui-form-item layui-input-inline">
                            <div class="layui-inline">
                                <label class="layui-form-label">维护类型</label>
                                <div class="layui-input-inline">
                                    <select name="type" class="maintain-type"></select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">维护时间</label>
                                <div class="layui-input-inline startDate">
                                    <input type="text" class="layui-input" id="startDate" name="startTime">
                                </div>
                                <div class="layui-form-mid">~</div>
                                <div class="layui-input-inline endDate">
                                    <input type="text" class="layui-input" id="endDate" name="endTime">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">维护人</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" name="staff">
                                </div>
                            </div>
                            <div class="layui-form-item layui-inline layui-btn-group fr">
                                <button type="button" class="layui-btn btn-theme layui-btn-sm searchBtn" lay-submit lay-filter="search">查询</button>
                                <button type="button" class="layui-btn btn-theme layui-btn-sm clearBtn">清空</button>
                                <button type="button" class="layui-btn btn-theme layui-btn-sm addBtn">新增</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!--表格-->
    <div class="tables">
        <table lay-filter="maintainTable" lay-data="{id: 'maintainTable'}" class="maintainTable"></table>
    </div>
</section>
</body>
</html>

<!--行操作按钮-->
<script type="text/html" id="rowOperate">
    <div class=" layui-btn-group">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
    </div>
</script>

<!--新增 / 编辑 共用弹框-->
<script type="text/html" id="layerRec">
    <div class="options maintainRec">
        <form class="layui-form layerRec" lay-filter="recForm" action="#">
            <div class="infowrap">
                <div class="layui-form-item">
                    <label class="layui-form-label"><i>*</i>维护类型</label>
                    <div class="layui-input-inline">
                        <select name="type" class="maintain-type" lay-verify="required" lay-verType="tips"></select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label"><i>*</i>维护时间</label>
                    <div class="layui-input-inline startDate">
                        <input type="text" class="layui-input" id="recDate" name="recDate" lay-verify="required" lay-verType="tips">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><i>*</i>维护内容</label>
                    <div class="layui-input-block">
                        <textarea name="content" placeholder="如：xx马达更换" class="layui-textarea" lay-verify="required" lay-verType="tips"></textarea>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label"><i>*</i>维护人</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" name="staff" lay-verify="required" lay-verType="tips" placeholder="请输入姓名">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="fr">
                        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="recForm">确定</button>
                        <button type="cancel" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</script>

<script src="../../../lib/layui/layui.js"></script>
<script src="../../static/js/common.js"></script>
<script src="../../static/js/file/maintain-rec.js"></script>
